﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArienToolkits.DBUntilities
{
    /// <summary>
    /// 数据库对象验证类
    /// </summary>
    public class Validator
    {
        /// <summary>
        /// 验证数据集是否包含数据
        /// </summary>
        /// <param name="dataSet">数据集</param>
        /// <returns></returns>
        public static bool IsNotNullOfDataSet(DataSet dataSet)
        {
            return (dataSet != null && dataSet.Tables != null && dataSet.Tables.Count != 0 && dataSet.Tables[0] != null && dataSet.Tables[0].Rows.Count != 0);
        }
    }
}
